<div class="col-lg-2 col-md-3  col-sm-12 col-xs-12 inbox-panel">
  <div> <a href="/restaurants/food_types" class="btn btn-custom btn-block waves-effect waves-light">菜品种类</a>
    <div class="list-group mail-list m-t-20"> 
      <a href="/restaurants/foods" class="list-group-item <%= 'active' if params[:food_type_id] == nil %>">
        所有菜品 
        <span class="label label-rouded label-success pull-right"><%= @food_total_count %></span>
      </a> 
    </div>
    <% @food_types.each do |food_type|  %>
     <div class="list-group mail-list m-t-20"> 
        <a href="/restaurants/foods?food_type_id=<%= food_type.id %>" class="list-group-item <%= 'active' if params[:food_type_id].to_i == food_type.id %>">
          <%= food_type.name %>
          <span class="label label-rouded label-success pull-right"><%= food_type.foods.count %></span>
        </a> 
      </div> 
    <% end %>
  </div>
</div>